package com.scuec.groupfive.service.impl;

import com.scuec.groupfive.mapper.WeakStatisticsMapper;
import com.scuec.groupfive.service.WeakStatisticsService;
import com.scuec.groupfive.vo.WeakPointVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 薄弱知识点排行榜Service实现
 */
@Service
public class WeakStatisticsServiceImpl implements WeakStatisticsService {

    @Autowired
    private WeakStatisticsMapper weakStatisticsMapper;

    @Override
    public List<WeakPointVO> getWeakPointRanking(Long userId, Integer subjectId) {
        return weakStatisticsMapper.getWeakPointRanking(userId, subjectId);
    }
}
